﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using MvcBlog.Common.Models;

namespace MvcBlog.ViewModels
{
    public class UserManagerViewModel
    {

        public UserManagerViewModel()
        {
        }

        public UserManagerViewModel(User u)
        {
            this.User = u;
        }

        public void ApplyChanges(User u)
        {
            //u.Email = this.User.Email;
            //u.Firstname = this.User.Firstname;
            //u.Lastname = this.User.Lastname;
            //u.Username = this.User.Username;
            u = this.User;
        }

        public User User { get; set; }

        // todo get more information about the user e.g. list of all blog entries

    }

}